import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
	state: {
		title: '小鸟游六花 子菜单',
		navList: [
			{
				title: '商品列表', id: 1, url: 'Shop',
				submenu: ['commodity1', 'commodity2', 'commodity3']
			},
			{
				title: '订单列表', id: 2, url: 'Order',
				submenu: ['order1', 'order2', 'order3']
			},
			{
				title: '财务列表', id: 3, url: 'finance',
				submenu: ['finance1', 'finance2', 'finance3']
			},
			{
				title: '用户列表', id: 4, url: 'Users',
				submenu: ['users1', 'users2', 'users3']
			}
		]
	},
	getters: {
		getNavList(state) {
			return state.navList;
		}
	},
	mutations: {},
	actions: {},
	modules: {}
});
